<?php
class AppsAction extends AdminAction {

	public function index()
	{
		$Apps = M('Apps');
        $map['mid'] = 1;
        $apps = $Apps->where($map)->find();
        $this->assign('apps',$apps);
		$this->display();
	}

	public function _before_update()
	{
		if ($_POST['isreg'] == 1) {
			$_POST['isreg'] = 1;
		}else{
			$_POST['isreg'] = 0;
		}
	}
	
}